$(function () {
    var postUrl = {
        Type: "Function",
        Content: {url: location.href},
        To: {
            Target: "main",
            Func: "setFrameUrl",
            Serial: ""
        },
        From: {
            Source: "",
            Func: "",
            Serial: ""
        }
    };
    window.parent.postMessage(postUrl, '*');
})